<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fn() {
        fn.title = "hello fn";
        fn.say = function () {
          console.log(this.title);
        };
      }
      const user = {
        sayBye: function () {
          this.sayBye.title = "hello sayBye";
          this.sayBye.say = function () {
            console.log(this.title);
          };
        },
      };
      const arr = [function () {}];

      fn();
      console.log(fn.title);
      fn.say();

      user.sayBye();
      user.sayBye.say();
    </script>
  </body>
</html>
